<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Input extends CI_Input {

	function MY_Input(){
		parent::CI_Input();
	}

	function get_data($array = array()){
		$values = array();
		if (is_array($array) && count($array)){
			foreach($array as $val){
				$values[$val] = parent::post($val);
			}
		} else {
			return FALSE;
		}
		return $values;
	}

    function _clean_input_keys($str) {
        $config = &get_config('config');
        if ( ! preg_match("/^[".$config['permitted_uri_chars']."]+$/i", rawurlencode($str))) {
            exit('Disallowed Key Characters.');
         }
         return $str;
    }


}

?>